#include <iostream>
#include <fstream>
#include <memory>
#include <thread>
#include <chrono>
#include <atomic>
#include <sstream>
#include <vector>
#include <algorithm>
#include <functional>
#include <unordered_map>

#include <WinSock2.h>

#pragma comment(lib, "Ws2_32.lib")

using namespace std;
using namespace std::placeholders;


struct selfpair
{
    std::string name;
    int id;
};

int main(int argc, char* argv[])
{
    time_t ttcur = time(NULL);
    time_t before = ttcur / (60 * 60) - 3;
    before *= (60 * 60);
    cout << ctime(&ttcur) << endl;
    cout << ctime(&before) << endl;
    return 0;
}